<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>修改</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
     <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('plan/company/edit',array('planId'=>$info.id))}" method="post">
   			 <div class="layui-form-item">
                <!--第一行-->
                <label class="layui-form-label">标题&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-block">
                    <input type="text" name="title" data-sets="title" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" value="{$info.title}" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">提交单位&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <select class="unitId" name="unitId" lay-verify="required">      
                                <option value=""></option>
                                {volist name="enterpriseList" id="item"}
                                <option value="{$key}" {if $info.unitId == $key}selected{/if}>{$item}</option>
                                {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-inline col-2">
                    <label class="layui-form-label">灾情分类&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                       <select class="typeId" name="typeId" lay-verify="required">
                            <option value=""></option>
                            {volist name="type" id="item" key="k"}
                            <option value="{$k}"  {if $info.typeId == $item}selected{/if}>{$item}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">简介&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <textarea name="desc" data-sets="desc" class="layui-textarea" placeholder="请输入简介">{$info.desc}</textarea>
                    </div>
                </div>
                <div class="layui-inline col-2">
                    <label class="layui-form-label">组织机构及职责&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <textarea name="organization"  lay-verify="required" data-sets="organization" class="layui-textarea" placeholder="请输入组织机构及职责">{$info.organization}</textarea>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">危险目标及特征&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" >
                        <textarea name="targetFeatures"  lay-verify="required" data-sets="targetFeatures" class="layui-textarea" placeholder="请输入危险目标及特征">{$info.targetFeatures}</textarea>
                    </div>
                </div>
                <div class="layui-inline col-2">
                    <label class="layui-form-label">辖区基本情况&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <textarea name="basicSituation" style="height:100%;" lay-verify="required" data-sets="basicSituation" class="layui-textarea" placeholder="请输入辖区基本情况">{$info.basicSituation}</textarea>
                    </div>
                </div>
            </div>

             <div class="layui-form-item">
                <div class="layui-inline col-2">
                    <label class="layui-form-label">性质分类&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 180px;">
                       <select  name="natureId" lay-verify="required">
                            <option value="">请选择</option>
                            <option value="1" {if $info.natureId == 1}selected{/if}>救灾</option>
                            <option value="2" {if $info.natureId == 2}selected{/if}>演练</option>
                        </select>
                    </div>
              	</div>
	            <div class="layui-inline col-2">
	                    <label class="layui-form-label">有效性</label>
	                    <div class="layui-input-inline">
	                        <input type="checkbox"  {if $info.isValid}checked{/if} name="isValid" lay-skin="switch"  lay-text="有效|无效">
	                    </div>
	                </div>
	             </div>
             <input type="hidden" name="id" value="{$info.id}"/>
             <div class="layui-form-item">
                <label class="layui-form-label">文件&nbsp;<i class="layui-icon arrow">　</i></label>
                <div class="layui-input-block">
                	<input class="layui-input upload-file" type="text" name="pathInfo" value="{$info.pathInfo}">
                    <a class="layui-btn layui-btn-small btn-green" id="uploadfile" data-url="{:url('admin/api.upload/upload')}"><i class="fa fa-upload"></i></a> 
                </div>
            </div>
            <input type="hidden" name="formId" value="1" >
   			<div class="layui-form-item">
                 	<div class="layui-input-block">
                         <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                         <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                    </div>
           	</div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/plan/company.js"></script>
       

</body>
</html>           

